package Popup;

import Composite.*;
import images.*;
import java.awt.event.*;

class ControleurOuvrirImage implements ActionListener {

    private TabsDeDroite lesTabs;
    private Element el;

    public ControleurOuvrirImage(TabsDeDroite lesTabs, Element el) {

        this.lesTabs = lesTabs;
        this.el = el;
    }

    public void actionPerformed(ActionEvent e) {

        int numeroRetour = lesTabs.getSelectedIndex();
        lesTabs.creerVueImage((Photo)el, 0, numeroRetour);
    }
}
